package com.quanyan.club.entity.db;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class TbOrder implements Serializable {
    //订单详细信息自增id
    private Integer id;

    //订单系统订单号，有订单系统提供
    private String orderTradeNo;

    //业务系统订单号，唯一
    private String orderNo;

    //用户id
    private Integer orderUid;

    //来源：1 APP  2 微信
    private Integer srcId;

    //发活动的俱乐部id
    private Integer clubId;

    //购买产品ID
    private Integer activityId;

    //报名人数
    private Integer applyNum;

    //订单总额
    private BigDecimal orderAmount;

    //抵扣的鸟蛋
    private Long accumulateAmount;

    //0超时未支付 1待支付 2支付成功 3支付失败 4退款中 5退款完成 6:AA退款完成 7已评价 8已取消
    private Byte orderStatus;

    //0 未取消,  取消对象: 1 用户主动取消已支付订单(退款) 2活动创办人取消 3活动异常百灵鸟官方后台管理员取消 4活动未达到开启条件而取消 5用户取消未支付订单
    private Byte cancelType;

    //-1.未知, 0.苹果, 2.安卓, 3.微信公众号, 4.H5网页 
    private Byte platformType;

    //用户选择的支付方式 1:支付宝 2:微信 3:微信公众号支付 4:银联支付 5:apple pay 6:免费
    private Byte payType;

    //支付方式名称
    private String payName;

    //应支付费用，无优惠时与订单总额应该一样
    private BigDecimal payAmount;

    private Date payTime;

    //删除状态 1：已删除  0：未删除
    private Byte isDelete;

    //订单说明，如退款原因等
    private String info;

    //创建时间
    private Date createTime;

    //更新时间
    private Date updateTime;

    //抵扣的俱乐部余额
    private BigDecimal balanceAmount;

    //抵扣的鸟蛋数对应金额
    private BigDecimal exchangeRmb;

    //优惠券代码
    private String couponCode;

    //优惠券金额
    private BigDecimal couponAmount;

    private Integer sportTypeId;

    static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderTradeNo() {
        return orderTradeNo;
    }

    public void setOrderTradeNo(String orderTradeNo) {
        this.orderTradeNo = orderTradeNo;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public Integer getOrderUid() {
        return orderUid;
    }

    public void setOrderUid(Integer orderUid) {
        this.orderUid = orderUid;
    }

    public Integer getSrcId() {
        return srcId;
    }

    public void setSrcId(Integer srcId) {
        this.srcId = srcId;
    }

    public Integer getClubId() {
        return clubId;
    }

    public void setClubId(Integer clubId) {
        this.clubId = clubId;
    }

    public Integer getActivityId() {
        return activityId;
    }

    public void setActivityId(Integer activityId) {
        this.activityId = activityId;
    }

    public Integer getApplyNum() {
        return applyNum;
    }

    public void setApplyNum(Integer applyNum) {
        this.applyNum = applyNum;
    }

    public BigDecimal getOrderAmount() {
        return orderAmount;
    }

    public void setOrderAmount(BigDecimal orderAmount) {
        this.orderAmount = orderAmount;
    }

    public Long getAccumulateAmount() {
        return accumulateAmount;
    }

    public void setAccumulateAmount(Long accumulateAmount) {
        this.accumulateAmount = accumulateAmount;
    }

    public Byte getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Byte orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Byte getCancelType() {
        return cancelType;
    }

    public void setCancelType(Byte cancelType) {
        this.cancelType = cancelType;
    }

    public Byte getPlatformType() {
        return platformType;
    }

    public void setPlatformType(Byte platformType) {
        this.platformType = platformType;
    }

    public Byte getPayType() {
        return payType;
    }

    public void setPayType(Byte payType) {
        this.payType = payType;
    }

    public String getPayName() {
        return payName;
    }

    public void setPayName(String payName) {
        this.payName = payName;
    }

    public BigDecimal getPayAmount() {
        return payAmount;
    }

    public void setPayAmount(BigDecimal payAmount) {
        this.payAmount = payAmount;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public Byte getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Byte isDelete) {
        this.isDelete = isDelete;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public BigDecimal getBalanceAmount() {
        return balanceAmount;
    }

    public void setBalanceAmount(BigDecimal balanceAmount) {
        this.balanceAmount = balanceAmount;
    }

    public BigDecimal getExchangeRmb() {
        return exchangeRmb;
    }

    public void setExchangeRmb(BigDecimal exchangeRmb) {
        this.exchangeRmb = exchangeRmb;
    }

    public String getCouponCode() {
        return couponCode;
    }

    public void setCouponCode(String couponCode) {
        this.couponCode = couponCode;
    }

    public BigDecimal getCouponAmount() {
        return couponAmount;
    }

    public void setCouponAmount(BigDecimal couponAmount) {
        this.couponAmount = couponAmount;
    }

    public Integer getSportTypeId() {
        return sportTypeId;
    }

    public void setSportTypeId(Integer sportTypeId) {
        this.sportTypeId = sportTypeId;
    }
}